package com.book.dao;

import com.book.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {
    int deleteByPrimaryKey(Integer studentId);


    int insert(Student record);

    List<Student> select();

    Student selectByPrimaryKey(Student student);

    int updateByPrimaryKey(Student record);

    Student loadByStudentName(String studentName);

    /*查询5条数据*/
    List<Student> selectPageList(@Param("startList") int startList, @Param("endList") int endList);

    int countNum();
}